<#-- 引入布局指令的命名空间 -->

<#import "../../layout/grid-layout.ftl" as defaultLayout>

<#assign breadcrumb>
	<ul class="breadcrumb">
        <li>
            <i class="ace-icon fa fa-home home-icon"></i>
            <a href="#">后台管理</a>
        </li>
        <li class="active">数据更新</li>
    </ul>
</#assign>


<#assign css_own>
<link rel="stylesheet" href="/resource/css/bootstrap-datepicker3.min.css">
<style>
    #my-update-modal .modal-content {
        width: 750px;
    }

    #my-detail-modal .modal-content {
        width: 900px;
    }
    #my-detail-modal td{
        word-wrap:break-word
    }
</style>

</#assign>
<#assign script_own>
<#--<script type="text/html" id="edit-template">-->
<#--<#include  "template/edit.ftl" >-->
<#--</script>-->
<#--<script src="/resource/script/lib/moment.min.js"></script>-->
<#--<script src="/resource/script/lib/bootstrap-datepicker.min.js"></script>-->
<#--<script src="/resource/script/lib/bootstrap-datepicker.zh.js"></script>-->
    <script src="/resource/script/web/data/update/d.u.index.js"></script>
</#assign>
<@defaultLayout.layout script=script_own css=css_own breadcrumb=breadcrumb>
<div class="row">
    <div class="col-xs-12">
        <div class="row">
            <div class="col-sm-12">
                <div id="sample-table-2_length">
                <#--<form class="form-horizontal" id="form-search">-->
                <#--<table class="table_gray" border="0" style="min-height:60px">-->
                <#--<tr>-->
                <#--<td class="width-w-80">所属平台:</td>-->
                <#--<td class="width-20">-->
                <#--<select class="form-control col-sm-5" name="platformid">-->
                <#--</select>-->
                <#--</td>-->
                <#--<td class="width-w-80"> 提交日期:</td>-->
                <#--<td>-->
                <#--<div class="input-daterange">-->
                <#--<input type="text" name="dateStartStr"/>-->
                <#--<span>-</span>-->
                <#--<input type="text" name="dateEndStr"/>-->
                <#--</div>-->
                <#--</td>-->
                <#--</tr>-->
                <#--<tr>-->
                <#--<td class="width-w-80">稽核方式:</td>-->
                <#--<td class="width-20">-->
                <#--<select class="form-control col-sm-5" name="audittype">-->
                <#--</select>-->
                <#--</td>-->
                <#--<td></td>-->
                <#--<td></td>-->
                <#--</tr>-->
                <#--</table>-->
                <#--</form>-->

                </div>
            </div>
        </div>
        <div class="row" style="margin-top: 10px;">
            <div class="col-sm-9">
            <#--<input id="btn-search" type="button" class="btn  btn-sm btn-purple" value="查询"/>-->
            <#--<input id="btn-add" type="button" class="btn  btn-sm btn-primary" value="添加"/>-->
            <#--<input id="btn-del" type="button" class="btn   btn-sm btn-danger" value="删除"/>-->
            </div>
            <div class="col-sm-3" style="text-align: right">
                <input id="btn-batch-update" type="button" class="btn  btn-sm btn-purple" value="批量处理"/>
            </div>
        </div>

        <!--grid begin data-type="datetime" -->
        <div class="table-responsive">
            <table id="grid" class="table table-striped table-hover table-bordered  dataTable no-footer">
                <thead>
                <tr>
                    <th data-column-id="id" data-identifier="true" data-visible="false">序号</th>
                    <th data-column-id="platformName" data-width="120">监控系统名称</th>
                    <th data-column-id="createDate" data-width="120">日期</th>
                    <th data-column-id="audittypeStr" data-width="120">报错类型</th>
                    <th data-column-id="detail" data-width="150" data-formatter="detailFormatter">详情</th>
                    <th data-column-id="command" data-width="150" data-formatter="commandFormatter">操作</th>
                </tr>
                </thead>
            </table>
        </div>
        <!--gird end-->
    </div>
</div>
<!-- 模态框（Modal） -->
<div class="modal fade" id="my-update-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">数据更新处理</h4>
            </div>
            <div class="modal-body">
            <#--<#include  "template/obligee.list.ftl" >-->
                <div class="row">
                    <div class="col-xs-12">
                        <form id="form-update" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label "> 系统名称: </label>
                                <div class="col-sm-5">
                                    <label name="platformName"></label>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label "> 更新日期: </label>
                                <div class="col-sm-5">
                                    <label name="createDate"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label "> 报错类型: </label>
                                <div class="col-sm-5">
                                    <label name=""></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label "> 报错详情: </label>
                                <div class="col-sm-5">
                                    <label name=""></label>
                                </div>
                            </div>
                            <input type="hidden" name="id">
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer" style="text-align: center">
                <button type="button" class="btn btn-primary" id="my-modal-btn-update">再次更新</button>
                <button type="button" class="btn btn-primary" data-dismiss="modal"> 忽略</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
<!-- /.modal -->


<div class="modal fade" id="my-detail-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">报错详情</h4>
            </div>
            <div class="modal-body">
            <#--<#include  "template/obligee.list.ftl" >-->
                <div class="row">
                    <div class="table-responsive">
                        <table id="grid-detail"
                               class="table table-striped table-hover table-bordered  dataTable no-footer">
                            <thead>
                            <tr>
                                <th data-column-id="id" data-identifier="true" data-visible="false">序号</th>
                                <th data-column-id="beanname" data-width="120">任务名称</th>
                                <th data-column-id="createdate" data-width="200">日期</th>
                                <th data-column-id="methodname" data-width="210">方法名称</th>
                                <th data-column-id="params" data-width="150">参数</th>
                                <th data-column-id="error" data-width="150" >错误详情</th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div>
</@defaultLayout.layout>



